import APIConfig from "../config/api"
import Http from "../utils/http"

class Category {
 
   
  /**
   *   获取分类列表 
  */
  static getCagtegoryList(){
      return Http.request({
        url: 'v1/category'
      })
  }

  static async getCategoryListWidthAll(){
    const categoryList = await Category.getCagtegoryList()
    categoryList.unshift({
      id:0,
      name:"全部"
    })
    return categoryList;
  }

}

export default Category